package com.whmnx.my.ui.viewmodel;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.whmnx.base.bean.TameBean;
import com.whmnx.base.constants.Constants;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.base.ItemViewModel;

/**
 * author : huang
 * date   : 2020/9/15 0015 16:48
 * version: 1.0
 * @author Administrator
 */
public class TeamItemViewModel extends ItemViewModel {

    public ObservableField<String> tvName2 = new ObservableField<>("");
    public ObservableField<String> tvName3 = new ObservableField<>("");
    public ObservableField<String> tvName = new ObservableField<>("");

    public String imgUrl;

    public TeamItemViewModel(@NonNull BaseViewModel viewModel,TameBean tameBeant) {
        super(viewModel);
        this.imgUrl = tameBeant.getUserInfo_HeadImg().contains(Constants.HOST) ? tameBeant.getUserInfo_HeadImg() : Constants.HOST + tameBeant.getUserInfo_HeadImg();
        tvName.set((String) tameBeant.getUserInfo_NickName());
        tvName2.set((String) tameBeant.getCreateDate());

    }


}
